package com.beiing.tianshuai.tianshuai.mine.view;

import com.beiing.tianshuai.tianshuai.base.BaseViewImpl;
import com.beiing.tianshuai.tianshuai.mine.entity.OrderUserAddressDataBean;
import com.beiing.tianshuai.tianshuai.mine.entity.OrderUserAddressDefaultDataBean;
import com.beiing.tianshuai.tianshuai.mine.entity.OrderUserAddressDeleteDataBean;

/**
 * Created by Administrator on 2018/4/10.
 * 用户地址信息列表显示接口
 * 判断用户地址信息获取是否成功
 */

public interface OrderAddressManageViewImpl extends BaseViewImpl<OrderUserAddressDataBean> {
    /**
     * 获取地址信息成功
     * @param bean 地址信息
     */
    void getOrderInformationAddressSuccess(OrderUserAddressDataBean bean);

    /**
     * 获取地址信息失败
     * @param bean 地址信息
     */
    void getOrderInformationAddressError(OrderUserAddressDataBean bean);
    /**
     * 获取修改默认地址参数回调成功
     * @param bean 参数回调
     */
    void getOrderDefaultInformationSuccess(OrderUserAddressDefaultDataBean bean, OrderUserAddressDataBean.DataBean.AddressBean changeBean,
                                           OrderUserAddressDataBean.DataBean.AddressBean changeAfterBean);

    /**
     * 获取修改默认地址参数回调失败
     * @param bean 参数回调
     */
    void getOrderDefaultInformationError(OrderUserAddressDefaultDataBean bean);
    /**
     * 获取删除地址参数回调成功
     * @param bean 参数回调
     * @param position
     */
    void onDeleteSuccess(OrderUserAddressDeleteDataBean bean, int position);

    /**
     * 获取删除地址参数回调失败
     * @param bean 参数回调
     */
    void getOrderDeleteInformationError(OrderUserAddressDeleteDataBean bean);
}
